package com.lin.eat.dao;

import com.lin.eat.entry.ShoppingCar;
import com.lin.eat.entry.ShoppingCarDetail;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface ShoppingCarMapper {

    int addShoppingCar(ShoppingCar shoppingCar);

    int deleteShoppingCar(String g_id);

    int updateShoppingCarState(ShoppingCar shoppingCar);

    int updateShoppingCarNumber(ShoppingCar shoppingCar);

    int updateAllShoppingCarState(String s_state);

    List<ShoppingCarDetail> getShoppingCarInfo();

    ShoppingCar findShoppingCarByGid(String g_id);

    List<ShoppingCarDetail> getShoppingCarChecked();
}
